package model.commands.commandable;

import model.Environment;
import model.commands.Command;


/**
 * Name:
 * HOME
 * 
 * Description:
 * moves turtle to the center of the screen (0 0)
 * returns the distance turtle moved
 * 
 * @author JLongley
 * @author Erick Gonzalez
 */
public class HomeCommand extends Command {

    @Override
    public int evaluate(Environment e) {
        e.invokeCommandableMethod(Environment.SET_POSITION, 0, 0);
        return 1;
    }
}
